home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / prgtools / vndutl13.zip / ASP_CD.BAT next >
DOS Batch File  |  1995-03-19  |  7KB  |  148 lines

  1. goto start
  2. :usage
  3. echo off
  4. cls
  5. echo ┌───────────────────────────────────────────────────────┐
  6. echo │ asp_cd.bat -- Extracts VENDINFO.DOZ fields currently  │
  7. echo │               used in processing submissions for the  │
  8. echo │               Formgen ASP CD-ROM, for visual check.   │
  9. echo │               Also prepares checklist for submission. │
  10. echo │               (Creates temporary files ASPCD.TMP and  │
  11. echo │               ASPPRINT.TMP in current directory.)     │
  12. echo │                                                       │
  13. echo │ usage:                                                │
  14. echo │        asp_cd vendinfo_file                           │
  15. echo │ where:                                                │
  16. echo │        vendinfo_file = pathname of VENDINFO.DOZ file  │
  17. echo │                                                       │
  18. echo │ example:                                              │
  19. echo │    asp_cd C:\VENDINFO.DOZ                             │
  20. echo │                                                       │
  21. echo │ NOTE: VENDPRCS.EXE must be on your DOS path.          │
  22. echo │                                                       │
  23. echo │ From the VNDUTL VENDINFO Utilities, v1.20 (3/6/95)    │
  24. echo │ Copyright 1995 Rams' Island Software, Parker, CO USA  │
  25. echo └───────────────────────────────────────────────────────┘
  26. goto done
  27.  
  28. ::----- check arguments -------------------------------------------
  29. ::-----    first argument must VENDINFO file pathname -------------
  30. :start
  31. if %1. == .        goto usage
  32.  
  33. :UpdateOK
  34. if not exist %1    goto problem
  35. goto argsOK
  36.  
  37. :argsOK
  38. ::----- test VENDINFO file ----------------------------------------   
  39. vendprcs %1 -xppt
  40. if errorlevel 52 goto viFileOK
  41. goto problem
  42.  
  43. :viFileOK
  44. ::----- display relevant fields, for visual checking --------------
  45.  
  46. echo     ASP CD-ROM Submission Checker (for Formgen ASP CD-ROM)   >  ASPCD.TMP
  47. vendprcs -y " "                                          >> ASPCD.TMP
  48. echo Verify that the following information is complete and correct. >> ASPCD.TMP
  49. echo In particular, notice and correct any fields whose value is given >> ASPCD.TMP
  50. echo as "(none)", unless the information is clearly irrelevant to your >> ASPCD.TMP
  51. echo product.                                            >> ASPCD.TMP
  52. vendprcs -y " "                                          >> ASPCD.TMP
  53. echo SPECIAL NOTES:                                      >> ASPCD.TMP
  54. echo   The "Author number" field is your ASP Author Member >> ASPCD.TMP
  55. echo      number, assigned by ASP, listed on your ASPects mailing label, >> ASPCD.TMP
  56. echo      or obtainable from the ASP member database (ASPDAT.ZIP, downloadable >> ASPCD.TMP
  57. echo      from CompuServe forum or obtainable from ASP). >> ASPCD.TMP
  58. echo   The "Product number" field is a number you assign to each >> ASPCD.TMP
  59. echo      of your products, starting at 1 and continuing sequentially. >> ASPCD.TMP
  60. echo   FormGen is using only four lines of address information, >> ASPCD.TMP
  61. echo      so you should make sure your entire address appears below. >> ASPCD.TMP
  62. vendprcs -y " "                                          >> ASPCD.TMP
  63. echo INFORMATION EXTRACTED FROM YOUR DOZ FILE:           >> ASPCD.TMP
  64. vendprcs %1 -xac     -y "Company name:      @"           >> ASPCD.TMP
  65. vendprcs %1 -xcdfi   -y "Author number:     @"           >> ASPCD.TMP
  66. vendprcs %1 -xaa -zi19 -zc30 -zr4 -y "Author address:    @" >> ASPCD.TMP
  67. vendprcs %1 -xap     -y "Author phone:      @"           >> ASPCD.TMP
  68. vendprcs %1 -xaei    -y "Author e-mail:     @"           >> ASPCD.TMP
  69. vendprcs -y " "                                          >> ASPCD.TMP
  70. vendprcs %1 -xpp     -y "Product name:      @"           >> ASPCD.TMP
  71. vendprcs %1 -xpv       -y "Version number:    @"           >> ASPCD.TMP
  72. vendprcs %1 -xpc1       -y "Category:          @"           >> ASPCD.TMP
  73. vendprcs %1 -xcdfj    -y "Product number:    @"           >> ASPCD.TMP
  74.  
  75. vendprcs -y " "                                          >> ASPCD.TMP
  76. vendprcs %1 -xcdff    -y "Doc filename:      @"           >> ASPCD.TMP
  77. vendprcs %1 -xcdfg   -y "Order form:        @"           >> ASPCD.TMP
  78. vendprcs %1 -xpn       -y "ZIP prefix:        @"           >> ASPCD.TMP
  79. vendprcs %1 -xcdfk    -y "Preferred dir:     @"           >> ASPCD.TMP
  80. vendprcs %1 -xcdfb    -y "Volume label:      @"           >> ASPCD.TMP
  81. vendprcs %1 -xcdpe    -y "Install command:   @"           >> ASPCD.TMP
  82. vendprcs %1 -xcdpl    -y "Config command:    @"           >> ASPCD.TMP
  83. vendprcs %1 -xcdpc    -y "Startup command:   @"           >> ASPCD.TMP
  84. vendprcs -y " "                                          >> ASPCD.TMP
  85. vendprcs %1 -xp2df    -y "Disk space req:    @K"          >> ASPCD.TMP
  86. vendprcs %1 -xpfvv    -y "VGA required?:     @"           >> ASPCD.TMP
  87. vendprcs %1 -xpfim    -y "Mouse required?:   @"           >> ASPCD.TMP
  88. vendprcs -y " "                                          >> ASPCD.TMP
  89. vendprcs %1 -xpd4 -zi19 -zc45 -y "Short Description: @"  >> ASPCD.TMP
  90. vendprcs -y " "                                          >> ASPCD.TMP
  91. vendprcs -y "Long Description:"                          >> ASPCD.TMP
  92. vendprcs %1 -xpd6 -zi2 -zc75 -y "  @"                    >> ASPCD.TMP
  93.  
  94. echo ============================================================================ > ASPPRINT.TMP
  95. echo Checklist of preparation steps for ASP CD-ROM submission: >> ASPPRINT.TMP
  96. echo ============================================================================ >> ASPPRINT.TMP
  97. vendprcs -y " " >> ASPPRINT.TMP
  98. echo  [ ] Prepare a VENDINFO.DOZ (description OUT OF zip) file for >> ASPPRINT.TMP
  99. echo      your product (you've presumably already done this, and are >> ASPPRINT.TMP
  100. echo      checking it now). >> ASPPRINT.TMP
  101. vendprcs -y " " >> ASPPRINT.TMP
  102. vendprcs %1 -xppl -y " [ ] Prepare @.ZIP package, with embedded FILE_ID.DIZ file," >> ASPPRINT.TMP
  103. echo      and with embedded VENDINFO.DIZ (description IN zip) file if desired. >> ASPPRINT.TMP
  104. vendprcs -y " " >> ASPPRINT.TMP
  105. echo  [ ] Place the file on a (preferably 3-1/2) diskette. >> ASPPRINT.TMP
  106. echo      (You may include multiple *.ZIP files on one diskette.) >> ASPPRINT.TMP
  107. vendprcs -y " " >> ASPPRINT.TMP
  108. echo  [ ] Place the VENDINFO.DOZ file you've prepared on the same >> ASPPRINT.TMP
  109. vendprcs %1 -xppl -y "     diskette, renaming it to @.DOZ." >> ASPPRINT.TMP
  110. vendprcs -y " " >> ASPPRINT.TMP
  111. echo  [ ] Send package to: >> ASPPRINT.TMP
  112. echo         FormGen, Inc. >> ASPPRINT.TMP
  113. echo         ATTN: Roger Arias >> ASPPRINT.TMP
  114. echo         7641 East Gray Rd. >> ASPPRINT.TMP
  115. echo         Scottsdale, AZ  49677 >> ASPPRINT.TMP
  116. echo         USA >> ASPPRINT.TMP
  117. vendprcs -y " " >> ASPPRINT.TMP
  118. echo ============================================================================ >> ASPPRINT.TMP
  119. echo                                                      Produced by VNDUTL 1.20 >> ASPPRINT.TMP
  120.  
  121. ::----- display created file ----------------------------------------
  122. @echo off
  123. cls
  124. more < ASPCD.TMP
  125. pause
  126.  
  127. ::----- display checklist -------------------------------------------
  128. cls
  129. type ASPPRINT.TMP
  130. pause
  131.  
  132. ::----- display print instruction -----------------------------------
  133. cls
  134. echo For a printed version of the checklist, simply print ASPPRINT.TMP.
  135.  
  136. goto done
  137.  
  138. :problem
  139. @echo off
  140. cls
  141. echo Specified VENDINFO file
  142. echo    (%1)
  143. echo does not exist, or is corrupted, unregistered, or has some other
  144. echo difficulty.
  145. goto done
  146.  
  147. :done
  148.